package cn.zktr.Personnel.controllers.ouyangpeng;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.zktr.Personnel.model.service.ouyangpeng.RetRseService;
import cn.zktr.Personnel.model.service.ouyangpeng.RetWAltService;


@Controller
public class RecruitController {
	/**
	 *简历
	 */
	@Autowired
	private RetWAltService retwalt;
	@Autowired
	private RetRseService retrse;
	
    //主页
	@RequestMapping("oyp/recruit-zhuye")
	public void recruit(Model model) {
		model.addAttribute("deptname", retwalt.selectDept());                 //部门
		model.addAttribute("empname", retwalt.selectemp());		              //员工
		model.addAttribute("potname", retwalt.selectpot());                   //职位
		model.addAttribute("potnames", retrse.selectyuangong());              //职级-职位列表
		model.addAttribute("fuzerennames", retrse.selectfuzenren());          //负责人
		model.addAttribute("jnxxname", retwalt.selectjineng());               //技能
		model.addAttribute("sexname", retrse.selectsex());                    //性别
		model.addAttribute("jihuanames", retrse.selectjihua());               //招聘计划
	}

	public void recruitkaosi(Model model) {
		model.addAttribute("deptname", retwalt.selectDept());                 //部门
		model.addAttribute("empname", retwalt.selectemp());		              //员工
		model.addAttribute("potname", retwalt.selectpot());                   //职位
		model.addAttribute("potnames", retrse.selectyuangong());              //职级-职位列表
		model.addAttribute("fuzerennames", retrse.selectfuzenren());          //负责人
		model.addAttribute("jnxxname", retwalt.selectjineng());               //技能
		model.addAttribute("sexname", retrse.selectsex());                    //性别
		model.addAttribute("jihuanames", retrse.selectjihua());               //招聘计划
	}
    //最终审核
    @RequestMapping("oyp/recruit-zzshenhe")
    public void demo10() {
    	
    }



}
